home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part1 / 4425 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: zetnet.co.uk!demon!redrobe.demon.co.uk
  2. From: Mike@Redrobe.demon.co.uk (Mike)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: .key
  5. Date: 04 Feb 96 21:27:51 +0000
  6. Message-ID: <1666.6608T1287T2551@Redrobe.demon.co.uk>
  7. References: <310d1327@cu-amiga.demon.co.uk>
  8. NNTP-Posting-Host: redrobe.demon.co.uk
  9. X-NNTP-Posting-Host: redrobe.demon.co.uk
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12.  
  13. Hi, Anthony Brice , on 29-Jan-96 12:34:15 you scribbled....
  14. >Hey look, on 23 Jan 96 Gary was heard mumbling to All:
  15.  
  16.  GED>> I have a game that is started by executing a script via iconx. What
  17.  GED>> puzzles me is that the following command line is executed before the
  18.  GED>> game is started:
  19.  
  20.  GED>> ..key dummy
  21.  
  22.  GED>> This puzzles me because there are no files on the disk named .key or
  23.  GED>> dummy. Is anyone familiar with this command?
  24.  
  25. ".key" just names the variable which will be substituted for whatever argument
  26. the user types.
  27.  
  28. >I've seen similar scripts using commands like this. They're normally followed
  29. >up with .bra lines. I think they're an Amigados way of passing arguments to
  30. ".bra" alters the default "<" character which is used to denote an argument
  31.  
  32. >the script based on what was called from Workbench, although don't quote me
  33. >on that as I've never understood them myself fully. Equivalent to the Arexx
  34. >Parse Arg perhaps?
  35.  
  36. example:
  37.  
  38. --
  39. .key Arg/A
  40.  
  41. echo "This script was called with the argument <arg> "
  42.  
  43. .bra {       ;change opening "bracket" character from "<" to "{"
  44. .ket }       ;change closing "bracket" character from ">" to "}"
  45.  
  46. echo " This script was called with the argument {Arg} "
  47.  
  48. --
  49.  
  50. >  /+     anthony@backyard.demon.co.uk - 2:254/255.0
  51. > /-|nthony Brice - BackYard BBS Sysop +44 (181) 4242065
  52.  
  53. >... Jesus saves. He passes to Moses. Moses shoots. He scores!
  54.  
  55. Oh dear this all sounds complicated now...
  56.  
  57.  
  58. Mike
  59.  
  60. --
  61. ---------------------------------------------------------------------------
  62. Mike Redrobe - Mike@Redrobe.demon.co.uk         MikeRR on #Amiga
  63. ---------------------------------------------------------------------------
  64.  
  65.